package spring.cloud.tasks.tasks_manager.schedule;

import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @author huihui
 */
@Setter
@Getter
public class TaskInstanceInfoContext {
    private String taskId;
    private long updateVersion;//如果和历史对比发生改变就生成一个新的。
    List<TaskInstanceInfo> taskInstanceInfoList = new CopyOnWriteArrayList<>();
    List<TaskInstanceInfo> waitingAddTaskInstanceInfoList = new CopyOnWriteArrayList<>();
}
